package view.ui
{
	import flash.display.MovieClip;
	import flash.display.SimpleButton;
	import flash.display.Sprite;
	import flash.system.ApplicationDomain;
	import flash.text.TextField;
	import flash.utils.getDefinitionByName;
	
	import ghostcat.ui.UIBuilder;
	
	public class UIBottom extends Sprite
	{
		private const NAME :String = "mainUI_bottomUI";
		
		public var expBar :MovieClip;
		public var expBarCopy :MovieClip;
		public var txtExp :TextField;
		public var btnBag :SimpleButton;
		public var btnHorse :SimpleButton;
		public var btnMarket :SimpleButton;
		public var btnPet :SimpleButton;
		public var btnPlayer :SimpleButton;
		public var btnSkill :SimpleButton;
		public var btnSocial :SimpleButton;
		public var btnWeapon :SimpleButton;
		public function UIBottom()
		{
			super();
			init();
		}
		private function init():void
		{
			if(ApplicationDomain.currentDomain.hasDefinition(NAME))
			{
				var cls :Class = getDefinitionByName(NAME) as Class;
				var mc :MovieClip = new cls() as MovieClip;
				addChild(mc);
				
				
				this.btnBag = mc.UI_buttom.btnBag;
				this.btnHorse = mc.UI_buttom.btnHorse;
				this.btnMarket = mc.UI_buttom.btnMarket;
				this.btnPet = mc.UI_buttom.btnPet;
				this.btnPlayer = mc.UI_buttom.btnPlayer;
				this.btnSkill = mc.UI_buttom.btnSkill;
				this.btnSocial = mc.UI_buttom.btnSocial;
				this.btnWeapon = mc.UI_buttom.btnWeapon;
				this.txtExp = mc.UI_buttom.txtExp;
				this.expBar = mc.UI_buttom.expBar;
				this.expBarCopy = mc.UI_buttom.expBarCopy;
			}
		}
	}
}